package com.tingyuge.base.thread.concurrent1;

import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * Created by xiaodao
 * date: 2019/11/26
 */
public class MyTest2 {
    public static void main(String[] args) {
        Stream.of(1,2,3,4,5).map(e->Math.pow(e,2)).collect(Collectors.toList()).forEach(System.out::println);
    }
}
